<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>tiny vue</title>
</head>
<script src="./vue.js"></script>
<body>
  <templete>
    <div id='app'>
        <div>
            <input v-model='counter' />
            <button v-on-click='add'>add</button>
            <p v-text='counter'></p>
        </div>
    </div>
 </templete>

 <script>
var vm = new TinyVue({
        el: 'app',
        data: {
            counter: 1
        },
        methods: {
            add: function () {
                console.log('add-start');
                this.counter += 1;
                console.log('add-end');

            }
        }
    })
 </script>
</body>
</html>